package com.lagou.cl.util;


public class HttpProtocolUtil {


	public static String get_200(int dataSize) {
		String status = "HTTP/1.1 200 OK";
		String contentLength = "Content-Length: " + dataSize;
		String contentType = "Content-Type: text/html; charset=UTF-8";

		return status + "\n" + contentLength + "\n" + contentType + "\n" + "\r\n";

	}


	public static String get_404() {
		String data = "<h1>404</h1>";
		String status = "HTTP/1.1 404 Not Fund";
		String contentLength = "Content-Length: " + data.length();
		String contentType = "Content-Type: text/html; charset=UTF-8";

		return status + "\n" + contentLength + "\n" + contentType + "\n" + "\r\n" + data;

	}
}
